package com.yuanian.wf.context.process;

import com.yuanian.wf.context.Context;
import com.yuanian.wf.pojo.dto.StartProcessDto;
import com.yuanian.wf.pojo.enums.EventType;

/**
 * 流程开启前上下文
 * @param <T>
 */
public class StartProcessBeforeContext<T> implements Context {

    protected StartProcessDto<T> startProcessDto;

    public StartProcessBeforeContext(StartProcessDto<T> startProcessDto) {
        this.startProcessDto = startProcessDto;
    }

    @Override
    public EventType getWfEventType() {
        return EventType.STARTPROCESS;
    }

    public StartProcessDto<T> getStartProcessDto() {
        return startProcessDto;
    }
}
